#include<bits/stdc++.h>
using namespace std;
int read(){
	int re=0,flag=1;char c=getchar();
	while(c<'0'||c>'9'){
		if(c=='-')flag=-1;
		c=getchar();
	}
	while(c>='0'&&c<='9'){
		re=re*10+c-'0';
		c=getchar();
	}
	return re*flag;
}
int A[100010];
int main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	int n=read(),ans=n;
	for(int i=1;i<=n;i++){
		A[i]=read();
	}
	sort(A+1,A+1+n);
	int j=1;
	for(int i=2;i<=n;i++){
		if(A[i]>A[j]){
			j++;
			ans--;
		}
	}
	cout<<ans;
	return 0;
}
